package com.shop.shop.controller;


import cn.hutool.core.lang.UUID;
import cn.hutool.core.util.IdUtil;
import com.alipay.api.domain.VoucherInfoDetail;
import com.shop.shop.service.OrderService;
import com.shop.shop.utile.PayUtile;
import com.shop.shop.utile.Q;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 *  
订单表 前端控制器
 * </p>
 *
 * @author 小🌤
 * @since 2021-04-22
 */
@RestController
@RequestMapping("/shop/order")
public class OrderController {

    @Autowired
    private OrderService orderService;


    @PostMapping("pay")
    public void pay(@RequestBody Integer[] ids, HttpServletResponse response){
        PayUtile.getPay(response, IdUtil.fastSimpleUUID(),0.01,"测试",90 );
    }
}

